package me.bincker.formwork.web.core.entity

import me.bincker.formwork.web.core.annotation.Permission

data class PermissionEntity(
        var name: String,
        var code: String
){
    companion object{
        fun of(permission: Permission) = PermissionEntity(permission.name, permission.code)
    }
}